package com.lc.demo;

import com.lc.annotation.Param;
import com.lc.annotation.SQL;
import com.lc.base.BaseDAO;

import java.util.List;

public interface UserDAO extends BaseDAO<User>{

    @SQL(sql = "select id,name from user", returnType = "com.lc.demo.User")
    List<User> selectUsers();

    @SQL(sql = "select id,name from user where id = ${id}", returnType = "com.lc.demo.User")
    User selectUser(@Param("id") int id);
}
